<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%

    //car_id=${student.car_id}&car_sn=${student.car_sn}&car_name=${student.car_name}&car_stutus=${student.car_stutus}&car_jiage=${student.car_jiage}">编辑</a>|
    String sid = request.getParameter("car_id");
    byte[] sid_bytes = sid.getBytes("ISO-8859-1");
    String car_id = new String(sid_bytes, "UTF-8");
    System.out.println("解决后:" + car_id);

    String sex = request.getParameter("car_sn");
    byte[] sex_bytes = sex.getBytes("ISO-8859-1");
    String car_sn = new String(sex_bytes, "UTF-8");
    System.out.println("解决后:" + car_sn);

    String email = request.getParameter("car_name");
    byte[] email_bytes = email.getBytes("ISO-8859-1");
    String car_name = new String(email_bytes, "UTF-8");
    System.out.println("解决后:" + car_name);

    String telephone = request.getParameter("car_stutus");
    byte[] telephone_bytes = telephone.getBytes("ISO-8859-1");
    String car_stutus = new String(telephone_bytes, "UTF-8");
    System.out.println("解决后:" + car_stutus);

    String addr = request.getParameter("car_jiage");
    byte[] addr_bytes = addr.getBytes("ISO-8859-1");
    String car_jiage = new String(addr_bytes, "UTF-8");
    System.out.println("解决后:" + car_jiage);


%>


<form action="/car/edit" method="post">
	<input type="hidden" name="car_id" value="<%=car_id %>" >
	<table border="1" width="400">
		<tr>
			<td>车位号</td>
			<td><input type="text" name="car_sn" value="<%=car_sn %>"/></td>
		</tr>

		<tr>
			<td>车主姓名</td>
			<td><input type="text" name="car_name" value="<%=car_name %>"/></td>
		</tr>
		<tr>
			<td>状态</td>
			<td><input type="text" name="car_stutus" value="<%=car_stutus %>"/></td>
		</tr>
		<tr>
			<td>价格</td>
			<td><input type="text" name="car_jiage" value="<%=car_jiage %>"   /></td>
		</tr>

		<tr>
			<td colspan="2"><input type="submit" value="修改"/></td>
		</tr>
	</table>
</form>
</body>
</html>